import request from "@/utils/request";

// 获取员工信息
export function getEmployee(params) {
  return request({
    url: "employee/page",
    method: "get",
    params,
  });
}
// 调整员工状态
export function changeEmployeeStatus(data) {
  return request({
    url: "employee",
    method: "put",
    data,
  });
}

export function addEmployee(data) {
  return request({
    url: "/employee",
    method: "post",
    data,
  });
}
export function editEmployee(data) {
  return request({
    url: "/employee",
    method: "put",
    data,
  });
}

export function getEmployeeById(id) {
  return request({
    url: `/employee/${id}`,
    method: "get",
  });
}
